package cn.csc.module.shop.controller.admin.slideimg.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigInteger;

/**
* 轮播图 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class ShopSlideImgBaseVO {

    @ApiModelProperty(value = "店铺ID", required = true)
    @NotNull(message = "店铺ID不能为空")
    private BigInteger shopId;

    @ApiModelProperty(value = "图片", required = true)
    @NotNull(message = "图片不能为空")
    private String imgUrl;

    @ApiModelProperty(value = "状态 1:enable, 0:disable", required = true)
    @NotNull(message = "状态 1:enable, 0:disable不能为空")
    private Boolean status;

    @ApiModelProperty(value = "顺序", required = true)
    @NotNull(message = "顺序不能为空")
    private Integer seq;

    @ApiModelProperty(value = "关联商品id")
    private BigInteger spuId;

    @ApiModelProperty(value = "图片类型 0:小程序", required = true)
    @NotNull(message = "图片类型 0:小程序不能为空")
    private Byte imgType;

}
